﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Tag="Binding - Slider with ElementName">
    <StackPanel>
        <TextBlock>
            <Run FontSize="{Binding ElementName=MySlider, Path=Value}" Text="Hello world!" />
            <Run Text=" Font size: " />
            <Run Text="{Binding ElementName=MySlider, Path=Value}" />
        </TextBlock>
        <Slider x:Name="MySlider" Minimum="18" Maximum="64" />
    </StackPanel>
</UserControl>
